package com.bigmi.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bigmi.model.common.dtos.ResponseResult;
import com.bigmi.model.wemedia.dtos.WmMaterialDto;
import com.bigmi.model.wemedia.pojos.WmMaterial;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

public interface WmMaterialService extends IService<WmMaterial> {

    /**
     * 素材图片上传
     * @param multipartFile
     * @return
     */
    public ResponseResult uploadPicture (MultipartFile multipartFile);

    /**
     * 素材列表
     * @param dto
     * @return
     */
    public ResponseResult findList( WmMaterialDto dto);
    //删除图片
    public ResponseResult delPicture(Integer id);
    //收藏图片
    public ResponseResult collect(Integer id);
    //取消收藏
    public ResponseResult cancel_collect( Integer id);

}
